# 20210629

class Solution:
    def convertToTitle(self, columnNumber: int) -> str:
        res = list()

        for columnNumber > 0:
            mod = (columnNumber - 1) % 26
            columnNumber = (columnNumber - 1) // 26

            res.append(chr(mod + ord('A')))

        return ''.join(res[::-1])
